<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="时间点：" prop="period">
          <el-input v-model="form.model.period" clearable />
        </el-form-item>
        <el-form-item label="扣费比例：" prop="rate">
          <el-input v-model="form.model.rate" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.refund_fee

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '退票手续费',
      actions: { add, edit, update },
      form: {
        model: {
          /** 时间点 */
          period: '',
          /** 扣费比例 */
          rate: ''
        },
        rules: {}
      }
    }
  }
}
</script>
